Skip to content

nuttx: type IovLen to c_ulong#664

Merged
Thomasdezeeuw merged 1 commit into
rust-lang:masterfrom
wllenyj:nuttx
Jul 8, 2026
Merged

nuttx: type IovLen to c_ulong#664
Thomasdezeeuw merged 1 commit into
rust-lang:masterfrom
wllenyj:nuttx

Conversation

@wllenyj

@wllenyj wllenyj commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

The msg_iovlen is the unsigned long in the Nuttx.

The origin define is as follows, in nuttx/include/sys/socket.h

struct msghdr
{
  FAR void *msg_name;
  socklen_t msg_namelen;
  FAR struct iovec *msg_iov;
  unsigned long msg_iovlen;
  FAR void *msg_control;
  unsigned long msg_controllen;
  unsigned int msg_flags;
};

The `msg_iovlen` is the `unsigned long` in the Nuttx.

The origin define is as follows, in nuttx/include/sys/socket.h
```
struct msghdr
{
  FAR void *msg_name;
  socklen_t msg_namelen;
  FAR struct iovec *msg_iov;
  unsigned long msg_iovlen;
  FAR void *msg_control;
  unsigned long msg_controllen;
  unsigned int msg_flags;
};
```

Signed-off-by: wanglei <wllenyj@gmail.com>
@Thomasdezeeuw Thomasdezeeuw merged commit 4b7a11c into rust-lang:master Jul 8, 2026
53 checks passed
@Thomasdezeeuw

Copy link
Copy Markdown
Collaborator

Thanks @wllenyj.

You can also add NuttX to the check CI job here:

Check:
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
target:
, this way we can at least ensure it keep building in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants